package io.gitee.zhangbinhub.admin.deploy.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank

@ApiModel("部署任务参数")
data class DeployTaskPo(
    @ApiModelProperty(name = "ID")
    var id: String? = null,
    @ApiModelProperty(name = "任务名称", required = true)
    @field:NotBlank(message = "任务名称不能为空")
    var name: String? = null,
    @ApiModelProperty(name = "脚本文件", required = true)
    @field:NotBlank(message = "脚本文件不能为空")
    var scriptFile: String? = null,
    @ApiModelProperty(name = "参数文件")
    var paramFile: String? = null,
    @ApiModelProperty(name = "执行的服务器IP正则表达式")
    var serverIpRegex: String? = null,
    @ApiModelProperty(name = "备注")
    var remarks: String? = null
)